package com.app.entity.bean;

/**
 * 查询APP信息时的条件封装
 */
public class AppInfoCondition {
    public AppInfoCondition(String softwareName, Long flatformId, Long categoryLevel1, Long categoryLevel2, Long categoryLevel3, int pageIndex, int pageSize) {
        this.softwareName = softwareName;
        this.flatformId = flatformId;
        this.categoryLevel1 = categoryLevel1;
        this.categoryLevel2 = categoryLevel2;
        this.categoryLevel3 = categoryLevel3;
        this.pageIndex = pageIndex;
        this.pageSize = pageSize;
        this.beginIndex = (pageIndex - 1) * pageSize;
        this.limitCount = pageSize;
    }

    private String softwareName;
    private Long flatformId;//平台id
    private Long categoryLevel1;//一级分类
    private Long categoryLevel2;//二级分类
    private Long categoryLevel3;//三级分类


    private int pageIndex;//页码
    private int pageSize;//每页条数
    private int beginIndex;
    private int limitCount;

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getLimitCount() {
        return limitCount;
    }

    public void setLimitCount(int limitCount) {
        this.limitCount = limitCount;
    }

    public String getSoftwareName() {
        return softwareName;
    }

    public void setSoftwareName(String softwareName) {
        this.softwareName = softwareName;
    }

    public Long getFlatformId() {
        return flatformId;
    }

    public void setFlatformId(Long flatformId) {
        this.flatformId = flatformId;
    }

    public Long getCategoryLevel1() {
        return categoryLevel1;
    }

    public void setCategoryLevel1(Long categoryLevel1) {
        this.categoryLevel1 = categoryLevel1;
    }

    public Long getCategoryLevel2() {
        return categoryLevel2;
    }

    public void setCategoryLevel2(Long categoryLevel2) {
        this.categoryLevel2 = categoryLevel2;
    }

    public Long getCategoryLevel3() {
        return categoryLevel3;
    }

    public void setCategoryLevel3(Long categoryLevel3) {
        this.categoryLevel3 = categoryLevel3;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public void setBeginIndex(int beginIndex) {
        this.beginIndex = beginIndex;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
